angular.component(ꞌgetHtmlꞌ).controller   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
nop 1
1
/**
2
 getHtml
3
 Simple component to retrieve the HTML value of a resource.
4
5
 @namespace Components
6
 */
7
'use strict';
8
9
angular.module('game').component('getHtml', {
10
  template: '<span ng-bind-html="ct.util.trustHTML(ct.util.getHTML(ct.value))"></span>',
11
  controller: ['util', function(util) {
12
    this.util = util;
13
  }],
14
  controllerAs: 'ct',
15
  bindings: {
16
    value: '<'
17
  }
18
});
19